package com.studerb.view.tasks.failed;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPanel;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import com.studerb.service.interfaces.ITaskService;


public class FailedTasksPane extends JPanel implements ActionListener {
    @Autowired protected ITaskService taskService;
    @Autowired protected FailedTasksTablePane failedTasksTablePane;
    protected JPanel buttonPane;
    JButton retryButton;
    Logger logger = Logger.getLogger(FailedTasksPane.class);

    public void actionPerformed(ActionEvent e) {
    }

    public void init() {
        this.setLayout(new BorderLayout());
        buttonPane = new JPanel();
        retryButton = new JButton("Retry Selected Task");
        buttonPane.add(retryButton);
        retryButton.addActionListener(this);
        add(buttonPane, BorderLayout.NORTH);
        add(failedTasksTablePane, BorderLayout.CENTER);
    }
}
